package fu.capstone.hanoicityguide.business.bo.holiday;

import java.util.ArrayList;

import android.content.Context;
import fu.capstone.hanoicityguide.business.model.Holiday;
import fu.capstone.hanoicityguide.dataaccess.holiday.HolidayDAO;
import fu.capstone.hanoicityguide.dataaccess.holiday.HolidayDAOImp;

public class HolidayBOImp implements HolidayBO{

	private Context context;
	private HolidayDAO dao;
	
	
	public void setContext (Context context) {
		this.context = context;
	}
	
	public HolidayBOImp () {
		
	}
	
	public HolidayBOImp(Context ctx) {
		this.context = ctx;
		dao = new HolidayDAOImp(context);
		// TODO Auto-generated constructor stub
	}

	@Override
	public ArrayList<Holiday> listHoliday(String filter, String sorter) {
		// TODO Auto-generated method stub
		
		ArrayList<Holiday> arrHoliday = dao
				.listHoliday(filter, sorter);
		return arrHoliday;
	}

	@Override
	public ArrayList<Holiday> searchHoliday(String filter, String sorter,
			String keyWord) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Holiday browseHoliday(int holidayID) {
		// TODO Auto-generated method stub
		Holiday holiday = dao.browseHoliday(holidayID);
		return holiday;
	}

}
